package com.example.administrator.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.method.PasswordTransformationMethod;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;

/**
 * Created by Administrator on 2016/11/29.
 */
public class FindPassword extends Activity {

    private EditText xinMiMa, queRenXinMiMa;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.find_password);

        xinMiMa = (EditText) findViewById(R.id.xinMiMa);
        queRenXinMiMa = (EditText) findViewById(R.id.queRenXinMiMa);
        xinMiMa.setTransformationMethod(PasswordTransformationMethod.getInstance());
        queRenXinMiMa.setTransformationMethod(PasswordTransformationMethod.getInstance());

        ImageButton back = (ImageButton) findViewById(R.id.back1);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(FindPassword.this, MainActivity.class);
                FindPassword.this.startActivity(intent);
            }
        });
    }
}
